<template>
  <div class="brand">
    <h3>品牌制造商直供</h3>
    <ul>
        <li v-for="item in brandListArr" :key="item.id">
            <img :src="item.list_pic_url" alt="">
            <p class="res1">{{item.name}}</p>
            <p class="res2">{{item.floor_price |formatMoney}}</p>
        </li>
    </ul>
  </div>
</template>

<script>
export default {
    name:'Bread',
    props:["brandListArr"],
    data(){
        return{

        }
    }
}
</script>

<style lang='less' scoped>
.brand{
    h3{
        text-align: center;
        margin-bottom: 20px;
    }
    ul{
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        li{
            width: 48%;
            font-size: 16px;
            position: relative;
            margin-bottom: 10px;
            .res1{
                position: absolute;
                top: 10px;
                left: 10px;
            }
            .res2{
                position: absolute;
                top: 30px;
                left: 10px;
                color: orange;
            }
        }
        img{
        display: block;
        width: 100%;
    }
    }
}
</style>